<template>
	<view class="">
		<view class="u-content">
			<u-parse :html="content"></u-parse>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				content: ''
			}
		},
		onLoad() {
			this.getXiyi()
		},
		methods: {
			getXiyi() {
				this.$ajaxRequest.get(this.baseUrl + 'shop/index/userText', {}, true).then(res => {
					console.log(res)
					if (res.data.code == 200) {
						this.content = res.data.data.text
					} else {
						uni.showToast({
							title:res.data.msg,
							icon:'none'
						})
					}
				})
			}
		}
	}
</script>

<style>
	.u-content {
		padding: 30rpx;
	}
</style>
